package apirouter

import (
	"slgw_web/api"

	"openzbox.com/frame/echo"
	"openzbox.com/frame/echo/middleware"
)

func InitDeviceInfoRouter(group *echo.Group) {
	router := group.Group("/DeviceInfo", middleware.AuthMiddleware()) //, middleware.AuthMiddleware()

	router.GET("/GetDeviceInfo", api.GetDeviceInfo) //, middleware.AuthMiddleware()
	router.POST("/EditDeviceInfo", api.EditDeviceInfo)
	router.POST("/EditDeviceInfo_Concentrator", api.EditDeviceInfo_Concentrator)
	router.POST("/EditDeviceInfo_Concentrator_User", api.EditDeviceInfo_Concentrator_User)
	router.POST("/DeleteDeviceInfo", api.DeleteDeviceInfo)
	router.POST("/DeleteConcentrator", api.DeleteConcentrator)
	router.POST("/DeleteConcentratorUser", api.DeleteConcentratorUser)
	router.POST("/EditDeviceInfoDetail", api.EditDeviceInfoDetail)
	router.POST("/DeleteDeviceInfoDetail", api.DeleteDeviceInfoDetail)
	router.GET("/GetSelectSerialInfo", api.GetSelectSerialInfo)
	router.POST("/GetTcpConnect", api.GetTcpConnect)

}
